﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace OpenNETCF.Bookshare.Services.ISBNDB
{
    internal abstract class BaseRequest : IRequest
    {
        public abstract string Index { get; }
        public abstract string ApiPage { get; }
        public abstract IResponseParser GetParser();

        public RequestParameterCollection Parameters { get; set; }

        public BaseRequest()
        {
            Parameters = new RequestParameterCollection();

            Parameters.Add("index1", Index);
            Parameters.Add("value1", string.Empty);
        }

        public string Value
        {
            get { return Parameters["value1"].Value; }
            set { Parameters["value1"].Value = value; }
        }
    }

    internal enum BookResults
    {
        Details,
        Texts,
        Subjects,
        MARC,
        Authors
    }

}
